
window.onload = function () {
    console.log("开始");

    var a = document.getElementById("body");
    var color = 100;
    var change_color = function () {
        if (color < 10000) {
            color = color + 1;
            a.style.backgroundColor = "#" + color + "";
            console.log("#" + color + "");
        }
        else {
            color = 100;
        }
    }

    setInterval(change_color, 2000);
} 